package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjSpareRelationParam;
import com.zb.vo.GoodsDetailParamVo;
import com.zb.vo.GoodsParamValVo;

import java.util.List;

/**
 * <p>
 * 备件参数关联表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-08-15
 */
public interface ZjSpareRelationParamService extends IService<ZjSpareRelationParam> {

    /**
     * 新增、修改备件参数
     * @param custAccId 商家ID
     * @param spareId 备件ID
     * @param paramValVo
     */
    void save(Long custAccId, Long spareId, GoodsParamValVo paramValVo);

    /**
     * 根据备件ID获取备件参数、参数字段
     * @param spareId 备件ID
     * @return
     */
    GoodsDetailParamVo getBySpareId(Long spareId);

    /**
     * 根据备件ID删除备件参数
     * @param spareIds
     */
    void deleteBatchBySpareIds(List<Long> spareIds);

    /**
     * 根据备件ID获取备件参数
     * @param spareId 备件ID
     * @return
     */
    GoodsParamValVo getParamBySpareId(Long spareId);
}
